package cmfg;

public class WSDataDaoImpl implements NetDataDao {

	private double[] netData;
	private int nodeCount=20;//netData[0]
	private double p=0.5;//netData[1]
	private int neighbours=5;//netData[2]

	@Override
	public double[] getNetData() {

		return netData;
	}

	@Override
	public void setNetData(double[] netData) {

		this.netData = netData;
		nodeCount = (int) netData[0];
		p = netData[1];
		neighbours = (int) netData[2];

	}

	public int getNodeCount() {
		return nodeCount;
	}

	public double getP() {
		return p;
	}

	public int getNeighbours() {
		return neighbours;
	}

}
